/** Receive Input 0-9 , and print which number werent collected from this range
 * 
 * @author yevgenis
 *
 */

import java.util.Scanner;
public class untilNone {
	
	public static void main (String[] ARGC)
	{
		/* we don't know the size of the array to come ...
		*/
	
		final int NUM = 10;
		
		boolean arr[] = new boolean[ NUM ]; // Default is 0
		Scanner scan = new Scanner(System.in);
		
		
		int input1 = scan.nextInt();
		
		while (input1>=0 && input1< NUM)
		{
			arr[ input1 ] = true;
			
			input1 = scan.nextInt();
		}
		
		
		
		 for (int i=0;i<arr.length;i++)
		 {
			 if (! arr[i] )
			 {
				 	System.out.println("Instance: " + i +" Value " + arr[i]);
			 }
			 
		 }
		
		
	}

}
